package com.example.controller;

import com.example.pojo.OaPrj;
import com.example.pojo.OaPrjrcd;
import com.example.service.IOaPrjService;
import com.example.service.IOaPrjrcdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/projectrcd")
@CrossOrigin
public class OaPrjrcdController {
    @Autowired(required = false)
    IOaPrjrcdService oaPrjrcdService;

    @RequestMapping("/search")
    public java.util.List<OaPrjrcd> oaPrjrcdList(OaPrjrcd prjrcd){ return oaPrjrcdService.oaPrjrcdList(prjrcd); }

    @RequestMapping("/insert")
    public int oaPrjrcdInsert(OaPrjrcd prjrcd){ return oaPrjrcdService.oaPrjrcdInsert(prjrcd); }

    @RequestMapping("/delete")
    public int oaPrjrcdUpdate(OaPrjrcd prjrcd){ return oaPrjrcdService.oaPrjrcdUpdate(prjrcd); }
}
